package cn.wanda.bi.sunshine.platform.server;

import cn.wanda.bi.sunshine.platform.server.utils.exception.ErrorMessage;

/**
 * Created by wangfupeng1
 */
public class SunshineCode {

    @ErrorMessage("未知错误")
    public static final int UNKNOWN = 6000;

    @ErrorMessage("参数有误")
    public static final int PARAM_ERROR = 6001;

    @ErrorMessage("微信授权认证-获取基础access_token出错")
    public static final int WECHAT_AUTH_ERROR_GET_ACCESS_TOKEN = 6002;

    @ErrorMessage("微信授权认证-获取JSAPI出错")
    public static final int WECHAT_AUTH_ERROR_GET_JSAPI = 6003;

    @ErrorMessage("微信-获取open_id出错")
    public static final int WECHAT_MINI_APP_ERROR_GET_OPEN_ID = 6004;

    @ErrorMessage("微信-获取union_id出错")
    public static final int WECHAT_MINI_APP_ERROR_GET_UNION_ID = 6005;

    @ErrorMessage("本地会员用户名或者密码错误")
    public static final int LOCAL_AUTH_ERROR_MEMBER_NAME_OR_PASSWORD_INCORRECT = 6006;
    
    @ErrorMessage("数据库查询appid失败")
    public static final int APPID_ERROR_NOT_FOUND_IN_DATABASE = 6007;

    @ErrorMessage("微信OpenId错误用户未绑定会员用户")
    public static final int WECHAT_ERROR_NOT_FOUND_BIND_MEMBER = 6008;


    @ErrorMessage("微信OpenId错误用户未绑定管理员用户")
    public static final int WECHAT_ERROR_NOT_FOUND_BIND_ADMIN = 6009;

    @ErrorMessage("微信OpenId错误没有Token")
    public static final int AUTH_OPEN_ID_AOP_ERROR_NO_TOKEN = 6010;

    @ErrorMessage("微信OpenId错误Token格式不正确")
    public static final int AUTH_OPEN_ID_AOP_ERROR_TOKEN_WRONG_FORMAT = 6011;

    @ErrorMessage("微信OpenId错误Token已过期")
    public static final int AUTH_OPEN_ID_AOP_ERROR_TOKEN_EXPIRED = 6012;

    @ErrorMessage("uid或者logintoken或者appid出错，拿不到signature")
    public static final int UID_LOGINTOKEN_APPID_ERROR_CANNOT_GET_SIGNATURE = 6013;

    @ErrorMessage("会员标签插入失败")
    public static final int GATHER_CUSTOMER_TOOL_MEMBER_TAG_INSERT_ERROR = 6014;

    @ErrorMessage("会员标签更新失败")
    public static final int GATHER_CUSTOMER_TOOL_MEMBER_TAG_UPDATE_ERROR = 6015;

    @ErrorMessage("会员标签删除失败")
    public static final int GATHER_CUSTOMER_TOOL_MEMBER_TAG_DELETE_ERROR = 6016;

    @ErrorMessage("用户名错误或密码错误")
    public static final int USER_NAME_WRONG_OR_PASSWORD_WRONG = 6017;

    @ErrorMessage("token验证失败")
    public static final int TOKEN_VERIFY_FAILED = 6018;

    @ErrorMessage("登录已过期")
    public static final int SYS_USER_LOGIN_EXPIRED = 6019;
    
    @ErrorMessage("搜索失败，请检查传入格式")
    public static final int ELASTICSEARCH_SEARCH_ERROR = 6020;

    @ErrorMessage("appid错误或者secret错误")
    public static final int APPID_WRONG_OR_secret_WRONG = 6021;

    @ErrorMessage("用户标签权限控制更新失败")
    public static final int DIM_USER_LABEL_ALL_AUTH_APPID_UPDATE_FAILED = 6022;

    @ErrorMessage("AppId用户不存在")
    public static final int APP_ID_USER_NOT_EXIST = 6023;

    @ErrorMessage("1分钟内最多可重试5次")
    public static final int ONE_MINUTE_OVER_FIVE_TIMES = 6024;

    @ErrorMessage("limit上限支持2000条")
    public static final int LIMIT_UP_TO_2000 = 6025;
    
}
